<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1"/>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<!--<script type="module">-->
<!--    let local = localStorage.getItem("local")-->
<!--    if (!local) local = 'zh-cn'-->
<!--    import('./' + local + ".js").then(module=>console.log(module.default))-->
<!--</script>-->
<script>
    function loadJS(src){
        return new Promise(resolve => {
            let script = document.createElement('script');
            script.src = src;
            script.onload = resolve
            document.head.appendChild(script)
        })
    }
    let local = localStorage.getItem("local")
    if (!local) local = 'en'
    import('./' + local + ".js").then(()=>{
        console.log(langs)
    })
</script>
</body>
</html>